//全局ajax事件，处理session过期跳转登录
$.ajaxSetup({
    complete:function(XMLHttpRequest,sessionStatus){
        var sessionstatus = XMLHttpRequest.getResponseHeader("session-status");
        if(sessionstatus=="timeout"){
            $.messager.alert('提示信息', "登录超时！请重新登录！", 'info',function(){
                window.location.href = path+'/login.jsp';
            });
        } 
    }
});